Sd Jwt Factory
class SdJwtFactory(hashAlgorithm: HashAlgorithm = HashAlgorithm.SHA_256, saltProvider: SaltProvider = SaltProvider.Default, decoyGen: DecoyGen = DecoyGen.Default, fallbackMinimumDigests: MinimumDigests? = null)(source)
Factory for creating an UnsignedSdJwt
Parameters
hash Algorithm
the algorithm to calculate the DisclosureDigest
salt Provider
provides Salt for the calculation of Disclosure
fallback Minimum Digests
This is an optional hint, that expresses the number of digests on the immediate level of every DisclosableObject. It will be taken into account if there is not an explicit hint for this DisclosableObject. If not provided, decoys will be added only if there is a hint at DisclosableObject level.
Constructors
Link copied to clipboard
constructor(hashAlgorithm: HashAlgorithm = HashAlgorithm.SHA_256, saltProvider: SaltProvider = SaltProvider.Default, decoyGen: DecoyGen = DecoyGen.Default, fallbackMinimumDigests: MinimumDigests? = null)
Functions
Link copied to clipboard
Calculates a UnsignedSdJwt for a given SD-JWT element.